# !/usr/bin/env python
# -*- coding: utf-8 -*-
# @File  : 工具创建-创建异步工具(异常).py
# @Author: dongguangwen
# @Date  : 2025-03-23 21:56
from langchain_core.tools import tool


@tool
async def multiply(a: int, b: int) -> int:
    """Multiply two numbers."""
    return a * b


try:
    multiply.invoke({"a": 2, "b": 3})
except NotImplementedError:
    print("Raised not implemented error. You should not be doing this.")

"""
Raised not implemented error. You should not be doing this.
"""